<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
       	$model=M('tags');
        $model1=M('articles');

        $where="status='1'";
        $where1="display='1'";
        $where2="choose='1'";

        $data=$model->order('id desc')->where($where1)->select();
        $list=$model1->order('id desc')->where($where)->select();
        $choose=$model1->order('id desc')->where($where2)->select();
        
        $this->assign('data',$data);
        $this->assign('list',$list);
        $this->assign('choose',$choose);
        $this->display();

        
    }
    public function fact(){
        $this->display();

    }
   
}
